<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/homecommon.jsp"%>
<%@ include file="/WEB-INF/views/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<base href="<%=basePath%>" />
		<link rel="stylesheet" type="text/css" href="/resources/css/home.css" />
		<link rel="stylesheet" type="text/css" href="/resources/pedometer/css/sub.css" />
	</head>
	<body>
		<table width="100%" border="0" cellspacing="10" cellpadding="0" class="tabbox">
			<tr>
				<td width="340">
					<div class="tab_title">
						<a href="javascript:void(0)">最新动态</a>
					</div>
			        <!--最新动态列表：start-->
			        <div class="box">
			        	<ul>
			        		<c:forEach items="${dynamicList}" var="dynamic">
					    		<li>${dynamic.date}&#12288;${dynamic.real_name}&#12288;${dynamic.opterate}&#12288;
						    		<c:choose>
						    			<c:when test="${dynamic.type == '0'}">
						    				<span title="${dynamic.content}">${dynamic.content}</span>
						    			</c:when>
						    			<c:otherwise>
						    				<a href="javascript:void(0)" onclick="Index.resourceDetail('${dynamic.dynamicId}')" title="${dynamic.content}" style="text-decoration: none;">
								    			<c:choose>
									    			<c:when test="${fn:length(dynamic.content) > 4}">
														<c:out value ="${fn:substring(dynamic.content, 0, 4)}......" />
													</c:when>
													<c:otherwise>
														<c:out value="${dynamic.content}"/>
													</c:otherwise>
								    			</c:choose>
								    		</a>
						    			</c:otherwise>
						    		</c:choose>
					    		</li>
					    	</c:forEach>
			        	</ul>
			        </div>
			        <!--最新动态列表：end-->
			        <div class="tab_title">
			        	<a href="javascript:void(0)">信息公告</a>
		        	</div>
			        <!--信息公告列表：start-->
			        <div class="box">
			        	<ul>
			        		<c:forEach items="${newsList}" var="news">
					    		<li>
					    			<a href="javascript:void(0)" onclick="Index.newsDetail('${news.newsId}')" title="${news.title}" style="text-decoration: none;">
					    				<c:choose>
							    			<c:when test="${fn:length(news.title) > 20}">
												<c:out value="${fn:substring(news.title, 0, 20)}......" />
											</c:when>
											<c:otherwise>
												<c:out value="${news.title}"/>
											</c:otherwise>
						    			</c:choose>
					    			</a>
					    		</li>
					    	</c:forEach>
			        	</ul>
			        </div>
			        <!--信息公告列表：end-->
				</td>
				<td>
			        <div class="tab2_title">
			        	<a href="javascript:void(0)">每月采集和更新商户信息统计</a>
		        	</div>
        			<div class="rightContMain">
						<div class="chartWrap" id="main">
							正在加载报表数据，请稍候...
						</div>
					</div>
			        <!-- <div class="tab2_title">
			        	<a href="javascript:void(0)">各地市商户信息采集情况汇总</a>
		        	</div>
	        		<div class="rightContMain">
	        			<div class="chartWrap" id="main1">
							正在加载报表数据，请稍候...
						</div>
						<script type="text/javascript">
					 		var rptOpt1 = "${data2}";               
							var option1 = eval("("+rptOpt1+")");	
						</script>
	        		</div> -->
			    </td>
			</tr>
		</table>
		<script type="text/javascript" src="/resources/js/pc/home/index.js"></script>
		<script type="text/javascript" src="/resources/js/echarts/doc/asset/js/esl/esl.js"></script>
		<script src="/resources/js/echarts/doc/asset/js/echartsExample.js" type="text/javascript"></script>
		<script type="text/javascript">
			var rptOpt = "${data1}";
			var option = eval("("+rptOpt+")");
		</script>
	</body>
</html>